package com.cy.ppj.web.admin.wj;

import com.cy.ppj.model.PageBean;
import com.cy.ppj.model.query.wj.WjOrderAdminListQuery;
import com.cy.ppj.model.vo.wj.WjOrderAdminListVO;
import com.cy.ppj.service.wj.WjOrderService;
import com.cy.ppj.web.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 后台-万家分期
 * @Author tanyilin
 * @Date 2019/5/13 14:26
 */
@RestController
@RequestMapping("/admin/wj/order")
@Api(tags = "后台-万家分期")
public class AdminWjOrderController extends BaseController {

    @Autowired
    private WjOrderService wjOrderService;

    @ApiOperation("列表")
    @GetMapping("/list")
    public PageBean<WjOrderAdminListVO> selectWjOrderAdminList(WjOrderAdminListQuery query) {
        PageBean<WjOrderAdminListVO> pageBean = wjOrderService.selectWjOrderAdminList(query);
        return pageBean;
    }

}
